package com.ruoyi.zyx.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 费用明细
对象 zyx_cost
 * 
 * @author lhs
 * @date 2021-06-18
 */
public class ZyxCost extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    private Long id;

    /** 维修单位id 关联部门表 */
    @Excel(name = "维修单位id 关联部门表")
    private Long departid;

    /** 派工表id */
    @Excel(name = "派工表id")
    private Long sendorderid;

    /** 设备id */
    @Excel(name = "设备id")
    private Long deviceid;

    /** 成员id */
    @Excel(name = "成员id")
    private Long memberid;

    /** 费用类型 */
    @Excel(name = "费用类型")
    private String costtype;

    /** 日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date costdate;

    /** 金额 */
    @Excel(name = "金额")
    private BigDecimal cost;

    /** 删除标记 */
    private String delFlag;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setDepartid(Long departid) 
    {
        this.departid = departid;
    }

    public Long getDepartid() 
    {
        return departid;
    }
    public void setSendorderid(Long sendorderid) 
    {
        this.sendorderid = sendorderid;
    }

    public Long getSendorderid() 
    {
        return sendorderid;
    }
    public void setDeviceid(Long deviceid) 
    {
        this.deviceid = deviceid;
    }

    public Long getDeviceid() 
    {
        return deviceid;
    }
    public void setMemberid(Long memberid) 
    {
        this.memberid = memberid;
    }

    public Long getMemberid() 
    {
        return memberid;
    }
    public void setCosttype(String costtype) 
    {
        this.costtype = costtype;
    }

    public String getCosttype() 
    {
        return costtype;
    }
    public void setCostdate(Date costdate) 
    {
        this.costdate = costdate;
    }

    public Date getCostdate() 
    {
        return costdate;
    }

    public void setCost(BigDecimal cost) 
    {
        this.cost = cost;
    }

    public BigDecimal getCost() 
    {
        return cost;
    }
    public void setDelFlag(String delFlag) 
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag() 
    {
        return delFlag;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("departid", getDepartid())
            .append("sendorderid", getSendorderid())
            .append("deviceid", getDeviceid())
            .append("memberid", getMemberid())
            .append("costtype", getCosttype())
            .append("costdate", getCostdate())
            .append("cost", getCost())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .append("delFlag", getDelFlag())
            .toString();
    }
}
